package cn.yh.hospitalappointmentsystemdemo.service.impl;

import cn.yh.hospitalappointmentsystemdemo.domain.query.DoctorQuery;
import cn.yh.hospitalappointmentsystemdemo.domain.vo.DoctorVo;
import cn.yh.hospitalappointmentsystemdemo.mapper.DoctorsMapper;
import cn.yh.hospitalappointmentsystemdemo.service.IDoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DoctorServiceImpl implements IDoctorService {
    @Autowired
    private DoctorsMapper doctorsMapper;


    @Override
    public List<DoctorVo> getDoctorsByHospital(DoctorQuery doctorQuery) {
        return doctorsMapper.selectByHospital(doctorQuery.getHospitalId(),doctorQuery.getDepartmentId());
    }
}
